package Leo.serviceClient.ribbon;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.Server;
import org.springframework.stereotype.Component;

//@Component
public class SecondPing implements IPing {
    public boolean isAlive(Server server) {
        String hostPort = server.getHostPort();
        System.out.println("我是second ping，现在在ping" + hostPort);
        if(hostPort.equals("8787")){
            return false;
        }
        return true;
    }
}
